from django.core.paginator import InvalidPage
from rest_framework.pagination import PageNumberPagination

from utils.common.base_response import APIResponse


# page_num 页容量,每页显示多少条数据,由前端传给后端的参数
# page 第几页,前端传给后端的参数CommonPagination
from rest_framework.pagination import PageNumberPagination
from rest_framework.response import Response


class CommonPagination(PageNumberPagination):
    page_size = 10
    page_size_query_param = 'page_size'
    max_page_size = 100


